#pragma once
#include <iostream>
#include <functional>
#include "MyLogger.h"

class CDataBuffer{
public:
    CDataBuffer(const std::string& name,A * data,unsigned int length);
    CDataBuffer(const CDataBuffer& db);
    CDataBuffer& operator = (const CDataBuffer& db);
    virtual ~CDataBuffer();
    A* GetExtraData() { return m_pFoo; }
    void Dump();
private:
    std::string m_dataName;
    unsigned int m_DataLength;
    unsigned int m_BufSize = 0;
    A* m_pFoo;
};